package com.caesar.IoStream;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @author caesar
 * @date 2025/7/14
 * @Description:
 * @apiNote
 */
public class exer2 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("d:\\尚硅谷资料\\尚硅谷_JavaSE_第8章_IO流_homework_参考答案.md");
        FileOutputStream fos = new FileOutputStream("d:\\尚硅谷资料\\尚硅谷_JavaSE_第8章_IO流_homework_参考答案_副本.md");
        byte[] data = new byte[1024];
        int len;
        while ((len = fis.read(data)) != -1) {
            fos.write(data, 0, len);
        }
        fos.close();
        fis.close();

    }
}
